<include file="top" />
<include file="left" />
<script language="javascript">
 function getValue()
 {
  var s = "";
  for(var i=0;i<form1.relative_product.options.length;i++)
  {
   if(form1.relative_product.options[i].selected)
   { 
    s+=form1.relative_product.options[i].value;
    s+=',';
   }
  }
  form1.rp.value=s;
 }
</script>

<div id="right">
	<h3>修改产品信息</h3>
	<form method="post" enctype="multipart/form-data" id="form1">
		<table width="100%" border="1">
			<tr>
				<td width="16%" >*所属栏目：</td>
				<td width="84%">
					<{$product.cate_data.big_category_name}>
					<input type="hidden" value="<{$product.id}>" name="product_id">
					<input type="hidden" value="<{$product.pid}>" name="pid">
				</td>
			</tr>
			<tr>
					<td width="16%" >选择哪个分类显示：</td>
					<td width="84%">
						<select name="cid">
							<option value="0">请选择</option>
							<volist name="ac_data" id="cate">
								<option value="<{$cate.id}>" <if condition="$product['cid'] eq $cate['id']">selected="selected"</if>><{$cate.big_category_name}>--<{$cate.classify_name}></option>
							</volist>

						</select>
					</td>
				</tr>
			<tr>
				<td width="16%" >*产品名称：</td>
				<td width="84%"><input type="text" class="wid" name="product_name" value="<{$product.product_name}>"></td>
			</tr>
			<tr>
				<td width="16%" >用于文章分类的产品名称：</td>
				<td width="84%"><input type="text" class="wid" name="classify_name" value="<{$product.classify_name}>"></td>
			</tr>
			<tr>
				<td width="16%" >title：</td>
				<td width="84%"><input type="text" class="wid" name="product_title" value="<{$product.product_title}>"></td>
			</tr>
			<tr>
					<td width="16%" >原产品图标：</td>
					<td width="84%"><img src="__PUBLIC__/upload/<{$article.small_icon}>"></td>
			</tr>
			<tr>
					<td width="16%" >产品图标：</td>
					<td width="84%"><input type="file" name="small_icon"></td>
				</tr>
			<tr>
				<td width="16%" >原缩略图：</td>
				<td width="84%"><img src="__PUBLIC__/upload/s_<{$product.product_img}>"></td>
			</tr>
			<tr>
				<td width="16%" >*缩略图：</td>
				<td width="84%">
					<input type="file" name="t_img">（用于首页中间两个产品和具体产品页面）
				</td>
			</tr>
			<tr>
				<td width="16%" >第三缩略图：</td>
				<td width="84%"><img src="__PUBLIC__/upload/s_<{$product.three_img}>"></td>
			</tr>
			<tr>
				<td width="16%" >*第三缩略图：</td>
				<td width="84%">
					<input type="file" name="three_img">（用于产品列表）
				</td>
			</tr>
			<tr>
				<td width="16%" >第二缩略图：</td>
				<td width="84%"><img src="__PUBLIC__/upload/s_<{$product.sec_img}>"></td>
			</tr>
			<tr>
				<td width="16%" >第二缩略图：</td>
				<td width="84%">
					<input type="file" name="sec_img">（用于首页那上面四个产品）
				</td>
			</tr>
			<tr>
				<td width="16%" >产品页上面图片：</td>
				<td width="84%"><img src="__PUBLIC__/upload/s_<{$product.pimg}>"></td>
			</tr>
			<tr>
				<td width="16%" >产品页上面图片：</td>
				<td width="84%">
					<input type="file" name="pimg">
				</td>
			</tr>
			<tr>
					<td width="16%" >产品页上面图片链接：</td>
					<td width="84%"><input type="text" class="wid" name="img_link" value="<{$product.img_link}>"></td>
				</tr>
				<tr>
					<td width="16%" >how it work 链接：</td>
					<td width="84%"><input type="text" class="wid" name="work_link" value="<{$product.work_link}>"></td>
				</tr>
			<tr>
				<td width="16%" >keywords：</td>
				<td width="84%"><input type="text" class="wid" name="product_keyword" value="<{$product.product_keyword}>"></td>
			</tr>
			<tr>
					<td width="16%" >更改静态化名字：</td>
					<td width="84%"><input type="text" class="wid" name="statice_name" value="<{$product.statice_name}>"></td>
				</tr>
			<tr>
				<td width="16%" >购买链接：</td>
				<td width="84%"><input type="text" class="wid" name="buy_link" value="<{$product.buy_link}>"></td>
			</tr>
			<tr>
				<td width="16%" >下载链接：</td>
				<td width="84%"><input type="text" class="wid" name="download_link" value="<{$product.download_link}>"></td>
			</tr>
			
			<tr>
				<td width="16%" >第二购买链接：</td>
				<td width="84%"><input type="text" class="wid" name="sec_buy_link" value="<{$product.sec_buy_link}>"></td>
			</tr>
			<tr>
				<td width="16%" >第二下载链接：</td>
				<td width="84%"><input type="text" class="wid" name="sec_download_link" value="<{$product.sec_download_link}>"></td>
			</tr>
			<tr>
				<td width="16%" >按钮1文字：</td>
				<td width="84%"><input type="text" class="wid" name="button_one_word" value="<{$product.button_one_word}>"></td>
			</tr>
			<tr>
				<td width="16%" >按钮2文字：</td>
				<td width="84%"><input type="text" class="wid" name="button_two_word" value="<{$product.button_two_word}>"></td>
			</tr>
			
			
			
			<tr>
				<td width="16%" >只有一个下载链接：</td>
				<td width="84%">
					<input type="radio" name="one_download_link" value="1" <if condition="$product.one_download_link eq 1">checked="checked"</if>>是
					<input type="radio" name="one_download_link" value="0" <if condition="$product.one_download_link eq 0">checked="checked"</if>>否
				</td>
			</tr>
			<tr>
				<td width="16%" >for windows or mac：</td>
				<td width="84%">
					<input type="radio" value="0" <if condition="$product.pc eq 0">checked="checked"</if> name="pc">不显示
					<input type="radio" value="1" <if condition="$product.pc eq 1">checked="checked"</if> name="pc">for windows
					<input type="radio" value="2" <if condition="$product.pc eq 2">checked="checked"</if> name="pc">for mac
				</td>
			</tr>
			<tr>
				<td width="16%" >for windows or mac外链接：</td>
				<td width="84%">
					<input type="text" class="wid" value="<{$product.out_link}>" name="out_link">
				</td>
			</tr>
			<tr>
				<td width="16%" >价格下降幅度：</td>
				<td width="84%">
					<input type="text" class="wid" value="<{$product.price_down_range}>" name="price_down_range">以百分号表示
				</td>
			</tr>
			<tr>
				<td width="16%" >是否流行：</td>
				<td width="84%">
					<input type="radio" value="1" <if condition="$product['is_popular'] eq 1">checked="checked"</if> name="is_popular">是
					<input type="radio" value="0" name="is_popular" <if condition="$product['is_popular'] eq 0">checked="checked"</if>>否
				</td>
			</tr>
			<tr>
				<td width="16%" >是否热卖：（首页产品）</td>
				<td width="84%">
					<input type="radio" value="1" <if condition="$product['is_hot'] eq 1">checked="checked"</if> name="is_hot">是
					<input type="radio" value="0" <if condition="$product['is_hot'] eq 0">checked="checked"</if> name="is_hot">否
				</td>
			</tr>
			<tr>
				<td width="16%" >是否热卖：（产品页显示热卖图标）</td>
				<td width="84%">
					<input type="radio" value="1" <if condition="$product['hot_show'] eq 1">checked="checked"</if> name="hot_show">是
					<input type="radio" value="0" <if condition="$product['hot_show'] eq 0">checked="checked"</if> name="hot_show">否
				</td>
			</tr>
			<tr>
				<td width="16%" >是否新增：</td>
				<td width="84%">
					<input type="radio" value="1" <if condition="$product['is_new'] eq 1">checked="checked"</if> name="is_new">是
					<input type="radio" value="0" <if condition="$product['is_new'] eq 0">checked="checked"</if> name="is_new">否
				</td>
			</tr>
			<tr>
				<td width="16%" >市场价：</td>
				<td width="84%"><input type="text" name="market_price" value="<{$product.market_price}>"></td>
			</tr>
			<tr>
				<td width="16%" >现在价格：</td>
				<td width="84%"><input type="text" name="now_price" value="<{$product.now_price}>"></td>
			</tr>
			<tr>
				<td width="16%" >另一个产品价格：</td>
				<td width="84%"><input type="text" name="other_price" value="<{$product.other_price}>"></td>
			</tr>
			<tr>
				<td width="16%" >Size：</td>
				<td width="84%"><input type="text" name="size" value="<{$product.size}>"></td>
			</tr>
			<tr>
				<td width="16%" >相关产品：</td>
				<td width="84%">
					<select name="relative_product" id="relative_product" multiple=”multiple” style="height:180px;over-flow:hidden;"> 
						<volist name="allpro" id="vo">
						<option value="<{$vo.id}>" <if condition="$vo['select'] eq 1">	selected="selected"</if>><{$vo.big_category_name}>--<{$vo.product_name}></option>
						</volist>
					</select>
					<input type="hidden" id="rp" name="rp" value="<{$product.relative_product}>">
				</td>
			</tr>
			<tr>
				<td width="16%" >seo内容简介：</td>
				<td width="84%"><textarea id="introduce" name="introduce" style="width:400px;height:100px;"><{$product.introduce}></textarea></td>
		    </tr>
		    <tr>
				<td width="16%" >第二描述：</td>
				<td width="84%"><textarea id="sec_description" name="sec_description" style="width:800px;height:200px;"><{$product.sec_description}></textarea></td>
		    </tr>
			<tr>
				<td width="16%" >内容：</td>
				<td width="84%"><textarea id="product_content" name="product_content" style="width:800px;height:300px;"><{$product.content}></textarea></td>
			</tr>
			<tr>
				<td width="16%" ></td>
				<td width="84%"><input type="submit" value="提交" name="sub" onclick="getValue()" /></td>
			</tr>
		</table>
	</form>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('#product_content', {
					allowFileManager : true
				});
			});
	</script>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('#sec_description', {
					allowFileManager : true
				});
			});
	</script>
</div>
<include file="foot" />